package org.air.demo.api.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import org.air.demo.api.ServiceThree;
import org.air.demo.api.ServiceTwo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ServiceTwoImpl  implements ServiceTwo{

    private static final Logger log = LoggerFactory.getLogger(ServiceTwoImpl.class);

    private ServiceThree serviceThree;

    @Override
    public void invoke() {
        log.info("ServiceTwoImpl invoke start!");
        serviceThree.invoke();
        log.info("ServiceTwoImpl invoke end!");
    }

    public void setServiceThree(ServiceThree serviceThree) {
        this.serviceThree = serviceThree;
    }
}
